package com.wonders.hisdoctor.station.project.base.domain;

import com.wonders.his.common.utils.validator.group.PrimaryGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>身份字典</p>
 * <p>db_table: identity_dict</p>
 * @author tong-aj
 * @date 2021/04/15
 */
@ApiModel("身份字典")
@Accessors(chain = true)
@Data
@ToString
@TableName("identity_dict")
public class IdentityDict implements Serializable {

    private static final long serialVersionUID = 1977855935519277479L;

    /** db_field: SERIAL_NO; desc: 序号 */
    @ApiModelProperty("序号")
    @TableField("SERIAL_NO")
    private Integer serialNo;

    /** db_field: IDENTITY_CODE; desc: 身份代码：可选 */
    @ApiModelProperty("身份代码：可选")
    @TableField("IDENTITY_CODE")
    private String identityCode;

    /** `主键` db_field: IDENTITY_NAME; desc: 身份名称 */
    @ApiModelProperty("身份名称")
    @TableId
    @NotNull(message = "身份名称不能为空", groups = PrimaryGroup.class)
    @TableField("IDENTITY_NAME")
    private String identityName;

    /** db_field: INPUT_CODE; desc: 输入码 */
    @ApiModelProperty("输入码")
    @TableField("INPUT_CODE")
    private String inputCode;

    /** db_field: PRIORITY_INDICATOR; desc: 优先标志：0-普通 1-优先 表示是否优先就诊和住院 */
    @ApiModelProperty("优先标志：0-普通 1-优先 表示是否优先就诊和住院")
    @TableField("PRIORITY_INDICATOR")
    private Integer priorityIndicator;

    /** db_field: MILITARY_INDICATOR; desc: 军人标志：0-地方 1-军人 */
    @ApiModelProperty("军人标志：0-地方 1-军人")
    @TableField("MILITARY_INDICATOR")
    private Integer militaryIndicator;

}